<template>
  <el-select  placeholder="Select" style="width: 240px">
      <el-option
        v-for="item in tableData"
        :label="item.name"
        :value="item.id"
      />
    </el-select>
</template>

<script lang="ts" setup>
import axios from 'axios';
import {ref,onMounted} from 'vue'
const tableData = ref([])
onMounted(() => {
   GetShow();  
})
const GetShow=()=>{
    axios({
        method:"get",
        url:"http://1.117.93.87:8000/rbacdu/api/User/UserSelectShow"
    })
    .then(res=>{
        tableData.value=res.data.data
        console.log(tableData.value)
    })
}
</script>
